package com.huike.review.service.impl;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Description: TODO
 * @Author: 沙建宝
 * @CreateTime: 2022-09-05  14:24
 * @Version: 1.0
 */
@Component
public class RunnerLoadThree implements InitializingBean {
    public RunnerLoadThree() {
        System.out.println("测试RunnerLoadThree======InitSequenceBean: constructor");
    }
    static {
        System.out.println("打印RunnerLoadThree静态方法");
    }
    @PostConstruct
    public void postConstruct() {
        System.out.println("测试RunnerLoadThree======InitSequenceBean: postConstruct");
    }
    public void initMethod() {
        System.out.println("测试RunnerLoadThree======InitSequenceBean: init-method");
    }
    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("测试RunnerLoadThree======InitSequenceBean: afterPropertiesSet");
    }
    public void test1(){
        System.out.println("测试文件加载");
    }
}
